package com.ww.grtsmanager.vo;

import javax.validation.constraints.NotBlank;
import java.util.List;

public class SubjectTree {
    private int id;
    private String label;
    private int parentId;
    private List<?> children;//?是任意类型的意思，是object类

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<?> getChildren() {
        return children;
    }

    public void setChildren(List<?> children) {
        this.children = children;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "SubjectTree{" +
                "id=" + id +
                ", label='" + label + '\'' +
                ", parentId=" + parentId +
                ", children=" + children +
                '}';
    }
}
